//资源管理
import body from '@/components/body'
import childView from '@/components/appMain.vue'

const resourceManageRouter = {
    path: '/resourceManage',
    component: body,
    iconCls: 'icon-wenjianjiabiheicon',
    name: '资源管理',//资源管理
    meta: {
        isLink: true
    },
    children: [
        {
            path: '/publicResourceManage',
            name: '用户个人资源管理',//公共资源管理
            component: childView, isParent: true,
            redirect: '/publicResourceManage/list',
            children: [
                {
                    path: '/publicResourceManage/list',
                    name: '资源列表',
                    component: resolve => {
                        require(['@/views/resourceManage/publicResourceManage/list.vue'], resolve)
                    },
                },
                {
                    path: '/publicResourceManage/add',
                    name: '资源添加',
                    component: resolve => {
                        require(['@/views/resourceManage/publicResourceManage/edit.vue'], resolve)
                    },
                },
                {
                    path: '/publicResourceManage/edit',
                    name: '资源修改',
                    component: resolve => {
                        require(['@/views/resourceManage/publicResourceManage/edit.vue'], resolve)
                    },
                }
            ]
        },
        {
            path: '/resourceVerify',
            name: '公共资源审核',//公共资源审核
            component: childView, isParent: true,
            redirect: '/resourceVerify/list',
            children: [
                {
                    path: '/resourceVerify/list',
                    name: '公共资源审核列表',
                    component: resolve => {
                        require(['@/views/resourceManage/resourceVerify/list.vue'], resolve)
                    },
                },
                {
                    path: '/resourceVerify/apply',
                    name: '公共资源审核详情',
                    component: resolve => {
                        require(['@/views/resourceManage/resourceVerify/apply.vue'], resolve)
                    },
                }
            ]
        },
        {
            path: '/resourceVerifyHistory',
            name: '审核历史记录',//审核历史记录
            component: childView, isParent: true,
            redirect: '/resourceVerifyHistory/list',
            children: [
                {
                    path: '/resourceVerifyHistory/list',
                    name: '审核历史记录列表',
                    component: resolve => {
                        require(['@/views/resourceManage/resourceverifyHistory/list.vue'], resolve)
                    },
                }, {
                    path: '/resourceVerifyHistory/view',
                    name: '审核历史记录详情',
                    component: resolve => {
                        require(['@/views/resourceManage/resourceverifyHistory/view.vue'], resolve)
                    },
                }
            ]
        },{
            path: '/resourceType',
            component: childView,
            iconCls: 'icon-bianji-copy',
            name: '资源类型维护',//报名管理
            meta: {
                isLink: true
            },
            children: [
                {
                    path: '/resourceType',
                    name: '资源类型管理',
                    component: childView,
                    redirect: '/resourceType/list',
                    children: [
                        {
                            path: '/resourceType/list',
                            name: '资源类型列表',
                            component: resolve => {
                                require(['@/views/resourceManage/resourceType/resourceType/list.vue'], resolve)
                            },
                        },
                        {
                            path: '/resourceType/add',
                            name: '资源类型添加页面',
                            component: resolve => {
                                require(['@/views/resourceManage/resourceType/resourceType/edit.vue'], resolve)
                            },
                        },
                        {
                            path: '/resourceType/edit',
                            name: '资源类型修改页面',
                            component: resolve => {
                                require(['@/views/resourceManage/resourceType/resourceType/edit.vue'], resolve)
                            },
                        }
                    ]
                },
                {
                    path: '/resourceSubject',
                    name: '资源学科管理',
                    component: childView,
                    redirect: '/resourceSubject/list',
                    children: [
                        {
                            path: '/resourceSubject/list',
                            name: '资源学科列表',
                            component: resolve => {
                                require(['@/views/resourceManage/resourceType/resourceSubject/list.vue'], resolve)
                            },
                        },
                        {
                            path: '/resourceSubject/add',
                            name: '资源学科添加页面',
                            component: resolve => {
                                require(['@/views/resourceManage/resourceType/resourceSubject/edit.vue'], resolve)
                            },
                        },
                        {
                            path: '/resourceSubject/edit',
                            name: '资源学科修改页面',
                            component: resolve => {
                                require(['@/views/resourceManage/resourceType/resourceSubject/edit.vue'], resolve)
                            },
                        }
                    ]
                },{
                    path: '/resourceMajor',
                    name: '资源专业管理',
                    component: childView,
                    redirect: '/resourceMajor/list',
                    children: [
                        {
                            path: '/resourceMajor/list',
                            name: '资源专业列表',
                            component: resolve => {
                                require(['@/views/resourceManage/resourceType/resourceMajor/list.vue'], resolve)
                            },
                        },
                        {
                            path: '/resourceMajor/add',
                            name: '资源专业添加页面',
                            component: resolve => {
                                require(['@/views/resourceManage/resourceType/resourceMajor/edit.vue'], resolve)
                            },
                        },
                        {
                            path: '/resourceMajor/edit',
                            name: '资源专业修改页面',
                            component: resolve => {
                                require(['@/views/resourceManage/resourceType/resourceMajor/edit.vue'], resolve)
                            },
                        }
                    ]
                },{
                    path: '/resourceCourse',
                    name: '资源课程管理',
                    component: childView,
                    redirect: '/resourceCourse/list',
                    children: [
                        {
                            path: '/resourceCourse/list',
                            name: '资源课程列表',
                            component: resolve => {
                                require(['@/views/resourceManage/resourceType/resourceCourse/list.vue'], resolve)
                            },
                        },
                        {
                            path: '/resourceCourse/add',
                            name: '资源课程添加页面',
                            component: resolve => {
                                require(['@/views/resourceManage/resourceType/resourceCourse/edit.vue'], resolve)
                            },
                        },
                        {
                            path: '/resourceCourse/edit',
                            name: '资源课程修改页面',
                            component: resolve => {
                                require(['@/views/resourceManage/resourceType/resourceCourse/edit.vue'], resolve)
                            },
                        }
                    ]
                },{
                    path: '/resourceFormat',
                    name: '资源格式管理',
                    component: childView,
                    redirect: '/resourceFormat/list',
                    children: [
                        {
                            path: '/resourceFormat/list',
                            name: '资源格式列表',
                            component: resolve => {
                                require(['@/views/resourceManage/resourceType/resourceFormat/list.vue'], resolve)
                            },
                        },
                        {
                            path: '/resourceFormat/add',
                            name: '资源格式添加页面',
                            component: resolve => {
                                require(['@/views/resourceManage/resourceType/resourceFormat/edit.vue'], resolve)
                            },
                        },
                        {
                            path: '/resourceFormat/edit',
                            name: '资源格式修改页面',
                            component: resolve => {
                                require(['@/views/resourceManage/resourceType/resourceFormat/edit.vue'], resolve)
                            },
                        }
                    ]
                },
            ]
        }
        // {
        //     path: '/contributionRanking',
        //     name: '贡献度排行',
        //     component: childView, isParent: true,
        //     redirect: '/contributionRanking/list',
        //     children: [
        //         {
        //             path: '/contributionRanking/list',
        //             name: '贡献度排行列表',
        //             component: resolve => {
        //                 require(['@/views/resourceManage/contributionRanking/list.vue'], resolve)
        //             },
        //         }
        //     ]
        // }
    ]
}
export default resourceManageRouter

